/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Iam.Model
{

    /// <summary>
    ///  passwordPolicy
    /// </summary>
    public class PasswordPolicy
    {

        ///<summary>
        /// 密码长度，6~20位，默认8位
        ///Required:true
        ///</summary>
        [Required]
        public int Length{ get; set; }
        ///<summary>
        /// 密码有效期（天），0~1095，0表示永不过期
        ///Required:true
        ///</summary>
        [Required]
        public int Age{ get; set; }
        ///<summary>
        /// 密码过期后重置方式：0-联系主账号重置，1-子用户登录后重置
        ///Required:true
        ///</summary>
        [Required]
        public int ExpirationOperation{ get; set; }
        ///<summary>
        /// 历史密码检查策略，禁止使用前(0~10)次密码，0表示不启用
        ///Required:true
        ///</summary>
        [Required]
        public int ReusePrevention{ get; set; }
        ///<summary>
        /// 1小时内使用错误密码最多(1~16)次
        ///Required:true
        ///</summary>
        [Required]
        public int RetryTimes{ get; set; }
        ///<summary>
        /// ValidLoginDuration
        ///Required:true
        ///</summary>
        [Required]
        public int ValidLoginDuration{ get; set; }
        ///<summary>
        /// 密码字符类型，至少包含一种
        ///Required:true
        ///</summary>
        [Required]
        public PasswordPolicyRule Rule{ get; set; }
    }
}
